import React from 'react';
import { Table } from 'antd';
import { ContentPackage } from '../../components';

class ContentPackageDemo extends React.Component {
  constructor() {
    super();
    this.state = {
      columns: [
        {
          title: 'Name',
          dataIndex: 'name',
          key: 'name',
        },
        {
          title: 'Age',
          dataIndex: 'age',
          key: 'age',
        },
        {
          title: 'Address',
          dataIndex: 'address',
          key: 'address',
        },
      ],
    };
  }

  render() {
    return <ContentPackage title={'contentPackage框架标题'} contentHtml={<Table columns={this.state.columns} />} />;
  }
}

export default ContentPackageDemo;
